.main-content {
  /* background: red; */
  height: calc(100vh - 60px);
  width: calc(100vw - 172px);
  overflow: hidden scroll;
}

/* 设置整个滚动条的样式 */
.main-content::-webkit-scrollbar {
  width: 6px;
}

/* 设置滚动条中滑块的样式 */
.main-content::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #31323a;
}

/* 列表项 */
.main-content {
  display: flex;
  flex-wrap: wrap;
  padding: 0 22px;
  padding-top: 22px;
  align-items: flex-start;
}

.main-content-item {
  width: 25%;
  /* border: 1px solid; */
  margin-bottom: 22px;
  padding: 0 8px;
}

.item-title {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  line-height: 24px;
  height: 48px;
  /* 多行文本溢出省略 */
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-author {
  height: 32px;
}
.main-content-item .item-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  border-radius: 5px;
  overflow: hidden;
}
.main-content-item .item-cover img,
.main-content-item .item-cover video {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
  z-index: 1;
}
.main-content-item .item-cover .favor {
  position: absolute;
  z-index: 2;
  font-size: 700;
  color: #fff;
  left: 5px;
  bottom: 10px;
  display: flex;
  align-items: center;
}

.main-content-item .item-cover .time {
  position: absolute;
  right: 5px;
  bottom: 10px;
  z-index: 2;
  font-size: 700;
  color: #fff;
}

.main-content-item .progress {
  width: 100%;
  height: 5px;
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6);
  left: 0;
  bottom: 0;
}
.main-content-item .progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #fe2c55;
}
/* 正常状态下 */
.main-content-item .item-cover video {
  display: none;
}
.main-content-item .item-cover .progress {
  display: none;
}
/* 播放状态下 */
.main-content-item.playing .item-cover video,
.main-content-item.playing .item-cover .progress {
  display: block;
}

.main-content-item.playing .item-cover img,
.main-content-item.playing .item-cover .favor,
.main-content-item.playing .item-cover .time {
  display: none;
}

/* 作者 */
.item-author {
  /* outline: 1px solid; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item-name {
  display: flex;
  align-items: center;
}
.item-name img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}
